<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
    <a href="${pageContext.request.contextPath}/el01.jsp">EL入门</a> <br>


    <%
        Cookie ck = new Cookie("username","tom");
        response.addCookie(ck);
    %>

  ${cookie}<br>  <%--获取所有Cookie的Map集合--%>
  ${cookie.username}<br>  <%--获取所有Cookie的Map集合--%>
  ${cookie.username.name}<br>  <%--获取所有Cookie的Map集合--%>
  ${cookie.username.value}<br>  <%--获取所有Cookie的Map集合--%>

  </body>
</html>
